<?php
session_start();
if(!isset($_SESSION['uid']))
 	{?>
		<script type="text/javascript">
			window.location="error.php";
		</script>
	<?php 
 	}else 		
 		{
			require_once 'dataBaseConnectivityFile.php';			
			$MAKE=$_REQUEST["make"];
			$sql_query="INSERT INTO filters (MAKE) VALUES('".$MAKE."')";
	       if(!mysql_query($sql_query,$con))
	                {
	                   die ("ERROR ".mysql_error());
	                }else
	                {?>
                        <script type="text/javascript">
                            alert("New Make Added");
                            window.location="addMake.php";
                        </script>			
 	<?php 	
	                }
 		}
 	?>
 	